Skip to content

Conversation

santysisi
Copy link
Contributor

@santysisi santysisi commented Mar 23, 2025

This update corrects the documentation to reflect the current behavior of the --method option in the router. The previous lines suggesting multiple --method options for displaying routes matching all given methods were incorrect. The system now only considers the last method passed. This fix removes the lines that caused confusion, clarifying that only the last method, such as PATCH, will be considered

Additionally, if it's considered a good idea, I can implement a new feature to allow multiple methods to be passed and match routes accordingly, enabling more flexibility in route debugging.

@carsonbot carsonbot added this to the 7.3 milestone Mar 23, 2025
@carsonbot carsonbot changed the title Fix documentation on router method option usage [Routing] Fix documentation on router method option usage Mar 24, 2025
@javiereguiluz
Copy link
Member

Santiago, thanks for fixing this ... and I'm sorry for adding this wrong doc.

@javiereguiluz javiereguiluz merged commit 26e69bd into symfony:7.3 Mar 24, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants